package com.itheima.qiemian;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component("myAspect")
@Aspect
public class MyAspect {
    //定义切点表达式.
    @Before("execution(* com.itheima.dao.*.*(..))")
    //前置增强方法
    public void before(){
        System.out.println("前置代码增强.....");
    }
}